package com.example.clock.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("user")
public class User {


    private String id;

    /**
     * 用户姓名
     */
    private String realName;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 上午打卡
     */
    private LocalDateTime lastLoginTime;

    public User() {
    }

    public User(String id, String realName) {
        this.id = id;
        this.realName = realName;
    }

    public User(String id, String realName, LocalDateTime createTime, LocalDateTime lastLoginTime) {
        this.id = id;
        this.realName = realName;
        this.createTime = createTime;
        this.lastLoginTime = lastLoginTime;
    }
}
